package com.zzw.design.adapter;

public class Wrapper implements Targetable{

	private Source source;
	
	private Wrapper(Source source){
		super();
		this.source = source;
	}
	
	public void method1() {
		source.method1();
	}
	
	public void method2() {
		System.out.println("this is the targetable method!");
	}

	public static void main(String[] args) {
		Source source = new Source();
		Targetable targetable = new Wrapper(source);
		targetable.method1();
		targetable.method2();
	}
}
